﻿using FX_API.Models;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FX_API.Models
{
    public class FXUpdateRequestModel
    {
        public string corpAccessToken { get; set; }
        public string corpId { get; set; }
        public string currentOpenUserId { get; set; }
        public bool triggerWorkFlow { get; set; }
        public bool triggerApprovalFlow { get; set; } = false;
        public UpdateData data { get; set; }

        public override string ToString()
        {
            return JsonConvert.SerializeObject(this);
        }
    }

    public class UpdateData
    {
        public object details { get; set; }
        public IObjectData object_data { get; set; }
    }
}
